package net.cloudcodex.shared.rpc;

import net.cloudcodex.shared.dto.Result;
import net.cloudcodex.shared.dto.home.HomeDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("home")
public interface HomeRPC extends RemoteService {

	/**
	 * @return user informations for home page.
	 */
	public Result<HomeDTO> getHome();
	
	/**
	 * Temporary utility method to register a user. Nickname must be unique.
	 * @param nickname nickname of the user to register.
	 */
	public Result<Boolean> register(String nickname);
	
}
